import { createApp } from 'vue';
import App from './App.vue';
import router, { setupRouter } from '/@/router';
import store, { setupStore } from '/@/store';
import { setupWechatAuth } from './plugins/wechatAuth';

// import { InMemoryCache } from 'apollo-cache-inmemory';
// import ApolloClient from 'apollo-client';
// import { setContext } from 'apollo-link-context';
// import { createHttpLink } from 'apollo-link-http';
// import { DefaultApolloClient } from '@vue/apollo-composable';

import 'moment/locale/zh-cn';

const app = createApp(App);

setupRouter(app);
setupStore(app); // vuex
setupWechatAuth(app);
router.isReady().then(() => {
  app.mount('#app');
});
